﻿window.mui.openWindow = function (url) {
    var _viewObj = plus.webview.create(url, url, {
        navigationbar: {
            'backgroundColor': '#2187E7',
            'titleText': 'VR学习',
            'titleColor': '#fff',
            'backButton': {
                'color': '#fff'
            }
        }
    })

    _viewObj.onloaded = function () {
        var _js = 'var script = document.createElement("script");'
            + 'script.src = "http://data.saicdh.com/cdn/Content/VR/mui-vr.js?v=' + new Date().valueOf() + '";'
            + 'document.body.appendChild(script);'
        _viewObj.evalJS(_js);
    }

    _viewObj.show('pop-in');
}